home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 2 / Gold Medal Software Volume 2 (Gold Medal) (1994).iso / windows / comms / recomm10.arj / RE_COMM.H < prev    next >
C/C++ Source or Header  |  1993-10-22  |  742b  |  44 lines

  1. #include <windows.h>
  2. #include <string.h>
  3.  
  4. #ifdef DLL_MAIN
  5.     #define EXTVAR
  6. #else
  7.     #define EXTVAR extern
  8. #endif
  9.  
  10.  
  11. EXTVAR HINSTANCE hCm;
  12. EXTVAR char dummy[20];
  13. EXTVAR int REMOTE_COM;
  14.  
  15. typedef struct {
  16.     char far    *pqRx;  /* pointer to Rx queue          */
  17.     int         cbqRx;  /* size of Rx queue in bytes    */
  18.     char far    *pqTx;  /* pointer to Tx queue          */
  19.     int         cbqTx;  /* size of Tx queue in bytes    */
  20. } QDB;
  21.  
  22. typedef struct {
  23.     HWND hwnd;
  24.     WORD inTrig;
  25.     WORD outTrig;
  26. } NOTI;
  27.  
  28. union datarec {
  29.     DCB dcb;
  30.     QDB qdb;
  31.     COMSTAT cs;
  32.     NOTI noti;
  33.     char txt[4096];
  34.     int x;
  35. };                
  36.  
  37.  
  38. struct recComData {    short len;
  39.     short fnc;
  40.     long rc;
  41.     int evmask;
  42.     union    datarec a;
  43. } comData;
  44.